﻿using System.ComponentModel.DataAnnotations;

namespace PearAdminMvcApp.Models
{
    public class Student
    {
        [UIHint("FormText")]
        [DataType(DataType.Password)]
        [StringLength(20,MinimumLength = 20,ErrorMessage = "h111")]
        [Display(Name = "学生姓名")] 
        [Required]
        [RegularExpression(@"\d{3}",ErrorMessage = "aaa")]
    
        public string Name { get; set; }
    }
}